a = [3,4,1,6,2,7,9,5,8,10]
def mp(num):
    for i in range(len(num)):
        for j in range(0,len(num) - i - 1):
            if num[j] > num[j + 1]:
                num[j],num[j+1] = num[j+1],num[j]
    return num
print(mp(a))